using Bean.Entity.Enum;

namespace Bean.Entity;

/// <summary>
/// 
/// </summary>
public class OTAField
{
    /// <summary>
    /// 
    /// </summary>
    public long Id { get; set; }
    
    /// <summary>
    /// 平台
    /// </summary>
    public CIDEnum OtaType { get; set; }

    /// <summary>
    /// 政策类型
    /// </summary>
    public PolicyTypeEnum PolicyType { get; set; }
    
    /// <summary>
    /// 父级节点
    /// </summary>
    public long ParentId { get; set; }

    /// <summary>
    /// 字段名称
    /// </summary>
    public string FiledName { get; set; }
    
    /// <summary>
    /// 字段名称
    /// </summary>
    public string FiledCode { get; set; }

    /// <summary>
    /// 政策备注
    /// </summary>
    public string FiledDescription { get; set; }

    /// <summary>
    /// 是否可为空
    /// </summary>
    public bool IsNullable { get; set; }

    /// <summary>
    /// 字段类型
    /// </summary>
    public string FiledType { get; set; }

    /// <summary>
    /// 是否只读
    /// </summary>
    public bool IsReadOnly { get; set; }

    /// <summary>
    /// 默认值
    /// </summary>
    public string FieldDefaultValue { get; set; }

    /// <summary>
    /// 数据验证方式
    /// 正则表达式 验证值的数据格式
    /// </summary>
    public string DataVali { get; set; }

    /// <summary>
    ///是否有效 
    /// </summary>
    public bool IsActive { get; set; }

    /// <summary>
    /// 是否删除
    /// </summary>
    public bool IsDeleted { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreatedBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string ModifiedBy { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime ModifiedTime { get; set; }
}